package cn.tom.service;

import cn.tom.entity.Cart;
import cn.tom.entity.Cart2Ord;
import cn.tom.entity.MyException;
import cn.tom.entity.Order;
import java.util.*;
public interface OrderService {

    //添加订单
    Order add2Order(Cart2Ord cart2Ord) throws MyException;

    //根据id查找
    Order findByOrdid(Integer ordid);
    Order findOrdByUid(Integer uid);
    //付款
    int doPay(Integer ordid) throws MyException;
    //带条件的分页  ----- 懒加载
    List<Order> findOrdersByPages(HashMap<String,Object> map , Integer pagenum,Integer lines);

    int updateShip(Integer ordid,Integer ship,String shipno,String shipper,Date date);
    int updateSign(Integer ordid,Integer ship,String shipno,String shipper,Date date);
    //统计
    int total(HashMap<String,Object> map);
}
